<%@page import="java.sql.*"%>
<%@page import="java.util.*"%>
<%@include file="opendata.jsp"%>
<%@include file="check.jsp"%>
<%
 String delid;
 delid = request.getParameter("questionid");
 sql = "delete from Items where QuestionID="+Integer.parseInt(delid);
 smt.executeUpdate(sql);
 sql = "delete from Questions where QuestionID ="+Integer.parseInt(delid);
 smt.executeUpdate(sql);
 response.sendRedirect("mainform.jsp");
%>
